<?php
//拒绝支付
session_start();
require('../conn.php');
require('../functions.php');
require('admin.php');
$page = $_GET['page'];
if (is_numeric($page) == false) {
    $page = 1;
} else {
    $page = $page + 1;
}
 ?>
<?php include('head.php') ?>
<div class="container-fluid">
    <div class="row-fluid">
        <?php
        include('left.php'); ?>
        <div class="span10">
            <h1 class="page-title">拒绝提现</h1>

            <div class="well">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <div class="pull-right">
                            <button class="btn"><a href="txlist2.php">首页</a></button>
                            <button class="btn"><a href="?page=<?php echo $page ?>">下一页</a></button>
                        </div>
                        <div class="well">
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>申请时间</th>
                                    <th>用户ID</th>
                                    <th>用户名</th>
                                    <th>电话</th>
                                    <th>提现积分</th>
                                    <th>状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                $row = $mysql->query("select * from `txdata` where `state`=3 order by `id` desc");
                                $row_tx = page_array(50, $page, $row, 0);
                                foreach ($row_tx as $v_tx) {
                                    $user = $mysql->query("select * from `user` WHERE `id`={$v_tx['uid']}");
                                    $username = $user[0]['name'];
                                    print <<<table
        <tr>
		  <td>{$v_tx['day']}</td>
		  <td>{$v_tx['uid']}</td>
		  <td>{$username}</td>
		  <td>{$v_tx['phone']}</td>
		  <td>{$v_tx['money']}</td>
		  <td>
			<font color=red>拒绝支付</font>
		  </td>
        </tr>
table;
                                } ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="profile">
                    </div>
                </div>

            </div>

        </div>
    </div>


</div>

<footer>
    <hr>

    <p class="pull-right"><!--power by right--></p>


    <p><!--power by --></p>
</footer>


<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="lib/bootstrap/js/bootstrap.js"></script>


</body>
</html>